import request from '@/utils/request'

// 查询应急预案列表
export function listSysEmergencyPlanInfo(query) {
    return request({
        url: '/emergency/sysEmergencyPlanInfo/list',
        method: 'get',
        params: query
    })
}

// 查询应急预案详细
export function getSysEmergencyPlanInfo(id) {
    return request({
        url: '/emergency/sysEmergencyPlanInfo/' + id,
        method: 'get'
    })
}

// 新增应急预案
export function addSysEmergencyPlanInfo(data) {
    return request({
        url: '/emergency/sysEmergencyPlanInfo',
        method: 'post',
        data: data
    })
}

// 修改应急预案
export function updateSysEmergencyPlanInfo(data) {
    return request({
        url: '/emergency/sysEmergencyPlanInfo',
        method: 'put',
        data: data
    })
}

// 删除应急预案
export function delSysEmergencyPlanInfo(id) {
    return request({
        url: '/emergency/sysEmergencyPlanInfo/' + id,
        method: 'delete'
    })
}
